%% createTmpMat
function createTmpMat(F, filename, mode)
[M, ~] = size(F);
names = cell(M, 1);
if strcmpi(mode,'same')
    parfor i=1:M
        names(i)=cellstr('same');
    end
end
if strcmpi(mode,'unique')
    parfor i=1:M
        names(i)=cellstr(num2str(i));
    end
end
save(filename, '-v7.3','F', 'names');
end
